/**检验记录 功能按钮 */
export function LabMainInfoBtns() {
  const temp = [
    {
      type: 0,
      /**按钮类型，0：按钮，1：按钮组，2：子组件，3：互相切换的按钮组（例如：审核、取消审核）*/
      content: '刷新',
      /**按钮显示文字*/
      icon: 'el-icon-refresh',
      position: 'left',
      /**图标位置*/
      status: 'primary',
      event: 'handleSearch',
      /**事件名*/
      parameter: ['code', 'wlNum'],
      /**形参*/
      width: 66
    },
    {
      type: 0,
      content: '新增',
      icon: 'el-icon-circle-plus-outline',
      position: 'left',
      status: 'primary',
      event: 'handleAddResult',
      parameter: [],
      width: 66
    },
    {
      type: 0,
      content: '删除',
      icon: 'el-icon-delete',
      position: 'left',
      status: 'danger',
      event: 'handleDeleteResult',
      parameter: [],
      width: 66
    },
    {
      type: 1,
      content: '',
      icon: '',
      position: 'left',
      status: '',
      event: '',
      parameter: [],
      children: [
        {
          type: 0,
          content: '上个',
          icon: 'el-icon-top',
          position: 'left',
          status: 'primary',
          event: 'prevCode',
          parameter: []
        },
        {
          type: 0,
          content: '下个',
          icon: 'el-icon-bottom el-icon--right',
          position: 'right',
          status: 'primary',
          event: 'nextCode',
          parameter: []
        }
      ],
      width: 134.6
    },
    {
      type: 0,
      content: '复查',
      icon: 'el-icon-folder-checked',
      position: 'left',
      status: 'success',
      event: 'setRepetition',
      parameter: [],
      width: 66
    },
    {
      type: 0,
      content: '危急值',
      icon: 'el-icon-warning-outline',
      position: 'left',
      status: 'danger',
      event: 'openRptCriticalValue',
      parameter: [],
      width: 78
    },
    {
      name: 'firstReviewed',
      type: 3,
      content: '初审',
      children: [
        {
          type: 0,
          content: '初审',
          icon: '',
          position: '',
          status: 'primary',
          isFirstReviewed: false,
          event: 'chkMainInfo'
        },
        {
          type: 0,
          content: '取消初审',
          icon: '',
          position: '',
          status: 'primary',
          isFirstReviewed: true,
          event: 'unChkMainInfo'
        }
      ],
      width: 66,
      width1: 90
    },
    {
      name: 'reviewed',
      type: 3,
      content: '审核',
      children: [
        {
          type: 0,
          content: '审核',
          icon: '',
          position: '',
          status: 'primary',
          isReviewed: false,
          event: 'chkMainInfo'
        },
        {
          type: 0,
          content: '取消审核',
          icon: '',
          position: '',
          status: 'primary',
          isReviewed: true,
          event: 'unChkMainInfo'
        }
      ],
      width: 66,
      width1: 90
    },
    {
      type: 0,
      content: '批量扫码',
      icon: 'el-icon-files',
      position: 'left',
      status: 'primary',
      event: 'scanCodeBulk',
      parameter: [],
      width: 90
    },
    {
      type: 0,
      content: '打印',
      icon: 'el-icon-printer',
      position: 'left',
      status: 'primary',
      event: 'previewPrint',
      parameter: [],
      width: 66
    },
    {
      type: 0,
      content: '预览',
      icon: 'el-icon-view',
      position: 'left',
      status: 'primary',
      event: 'previewRpt',
      parameter: [],
      width: 66
    },
    {
      type: 5,
      content: '电子病历',
      icon: 'el-icon-mobile',
      position: 'left',
      status: 'primary',
      event: 'wlEhr',
      parameter: [],
      getContent: 'getWlEhrName' /*获取按钮名称*/,
      width: 90
    },
    {
      type: 2,
      componentName: 'WkltQuickImportRef',
      width: 90
    },
    {
      type: 0,
      content: '模板',
      icon: 'el-icon-document-copy',
      position: 'left',
      status: 'primary',
      event: 'showTemplate',
      parameter: [],
      width: 66
    },
    {
      type: 0,
      content: '闭环',
      icon: 'el-icon-document-copy',
      position: 'left',
      status: 'primary',
      event: 'closedLoopShow',
      parameter: [],
      width: 66
    } /*,
    {
      type: 0,
      content: '不合格标本',
      icon: 'el-icon-folder-delete',
      position: 'left',
      status: 'primary',
      event: 'showUnqualified',
      parameter: [],
      width: 102
    }*/
  ];
  return temp;
}
